DNA vaccine is a promising strategy for protection against virus infection. However, little is known on the efficacy of vaccination with two plasmids for expressing the glycoprotein D (gD) and glycoprotein B (gB) of duck enteritis virus (DEV) in inducing immune response and immunoprotection against virulent virus infection in Pekin ducks. In this study, two eukaryotic expressing plasmids of pcDNA3.1-gB and pcDNA3.1-gD were constructed. Following transfection, the gB and gD expressions in DF1 cells were detected. Groups of ducks were vaccinated with pcDNA3.1-gB and/or pcDNA3.1-gD, and boosted with the same vaccine on day 14 post primary vaccination. We found that intramuscular vaccinations with pcDNA3.1-gB and/or pcDNA3.1-gD, but not control plasmid, stimulated a high frequency of CD4+ and CD8+ T cells in Pekin ducks, particularly with both plasmids. Similarly, vaccination with these plasmids, particularly with both plasmids, promoted higher levels of neutralization antibodies against DEV in Pekin ducks. More importantly, vaccination with both plasmids significantly reduced the virulent DEV-induced mortality in Pekin ducks. Our data indicated that vaccination with plasmids for expressing both gB and gD induced potent cellular and humoral immunity against DEV in Pekin ducks. Therefore, this vaccination strategy may be used for the prevention of DEV infection in Pekin ducks.